<?php

class ml_tool_distrsync
{
        public function rsync($dir_path , $dest , $what = '*')
        {
            
            $cmd = 'cd '.$dir_path.';/usr/local/bin/distrsync -u SinaBlog -f /data1/meilaadmin/dpoolrsyncd.root.secrets  -m '.$dest.'  -h b.dist.grid.sina.com.cn '.$what;
            exec($cmd);
            
        }
    
}